<?php

namespace app\common\model;

use think\Model;

class Dorm extends Model
{
    protected $autoWriteTimestamp = true;
    //职位
    public function getDormitory(){
        return $this->hasOne('\app\common\model\Dormitory','id','position_id');
    }

}